Test Series - java script

Test Number 53/92

Q: 
A. 
B. 
C. 
D. 
Solution: 
Q: Firebug is an extension of which browser?
A. Mozilla
B. Chrome
C. IE
D. Opera
Solution: Firebug is a discontinued free and open-source web browser extension for Mozilla Firefox that facilitated the live debugging, editing, and monitoring of any website’s CSS, HTML, DOM, XHR, and JavaScript.
Q: Firebug can be used to inspect ___________
A. HTML
B. CSS
C. DOM
D. All of the mentioned
Solution: Firebug is an extension for the Mozilla Firefox browser that allows you to debug and inspect HTML, CSS, the Document Object Model (DOM) and JavaScript. In addition to debugging web pages, Firebug was used for web security testing and web page performance analysis.
Q: Why do Web Developers use Firebug?
A. Track cookies
B. Track sessions
C. Both Track cookies and sessions
D. Track data
Solution: Web developers use Firebug for the following reasons:
Inspect the behavior of HTML/CSS, and modify style & layout with true WYSIWYG
Debug JavaScript
Detect performance of website
Track Cookies & Sessions
Web security analysis
Q: What are the goals for using Firebug?
A. Performance
B. Adaptability
C. Complexity
D. Reliability
Solution: The goals for using Firebug is:
Performance
Modularity
Shared code
Compatibility
Web security analysis
Q: Which of the following is not a feature of the User Interface?
A. Skinnable Interface
B. Resizable Side Panel
C. Fixed Side Panel
D. Menu options
Solution: The features present in the User Interface are:
Port of Firebug’s Visual Object Representation (aka Reps)
Recreation of Firebug 1.3 User Interface with pixel precision
Menu options
Resizable Side Panel
Skinnable Interface
Q: What is the default value of the property overrideConsole?
A. 1
B. 0
C. true
D. false
Solution: The default value of the property overrideConsole is true.
Q: Which of the following property(s) has a default value as false?
A. disableWhenFirebugActive
B. showIconWhenHidden
C. disableXHRListener
D. both disableWhenFirebugActive & showIconWhenHidden
Solution: Only disableXHRListener property has a default value false. The properties disableWhenFirebugActive and showIconWhenHidden has a default value of true.
Q: Which of the following action is possible in Firebug when used as a JavaScript Debugger and Profiler?
A. Pause execution in any line
B. Find Scripts easily
C. Find Scripts easily & also Pause execution in any line
D. Find text easily
Solution: When Firebug is used as a JavaScript Debugger and Profiler, it can be used to find scripts easily and also pause the execution in any desired line. Thus it helps in debugging javascript much easier.
Q: What will be the output or type of error if p is not defined in the following JavaScript code?

console.log(p)
A. Zero
B. Null
C. ReferenceError
D. ValueNotFoundError
Solution: The above code snippet, p is not defined. Hence, it gives a ReferenceError.
Q: The let keyword can be used ___________
A. in a for or for/in loop, as a substitute for var
B. as a block statement, to define new variables
C. to define variables that are scoped to a single expression
D. all of the mentioned
Solution: The let keyword can be used in four ways:
as a variable declaration like var;
in a for or for/in loop, as a substitute for var;
as a block statement, to define new variables and explicitly delimit their scope; and
to define variables that are scoped to a single expression.

You Have Score    /11